package MsgPackage;

/**
 * @author Omri Barda		039725890 
 * @author Amit Joseph		034608547
 * @author Gilad Shpigel  	300162393
 * @author Elad Elbaz		040539959
 * @version June 2012
 */

import java.util.ArrayList;
import entities.ExtractedExam;
import entities.Lecturer;

public class GetExamsToExtractPack extends MessagePack {
	private static final long serialVersionUID = 1L;
	private Lecturer lctrr;
	private ArrayList<ExtractedExam> lsrexam = null;

	/**
	 * constructor
	 * 
	 * @param lctrr
	 */
	public GetExamsToExtractPack(Lecturer lctrr) {
		this.op = OpType.GetExamsToExtract;
		this.lctrr = lctrr;
	}

	/**
	 * 
	 * @return the exams
	 */
	public ArrayList<ExtractedExam> GetExam() {
		return lsrexam;
	}

	/**
	 * 
	 * @param exams
	 *            to be added
	 */
	public void addExams(ArrayList<ExtractedExam> exams) {
		if (lsrexam == null)
			lsrexam = new ArrayList<ExtractedExam>();
		lsrexam.addAll(exams);
	}

	/**
	 * 
	 * @return the lecturer
	 */
	public Lecturer getLctrr() {
		return lctrr;
	}
}
